package edu.dailicious.tapestryboard.pages.grid;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.tapestry5.annotations.Property;

import edu.dailicious.tapestryboard.bean.Artist;
import edu.dailicious.tapestryboard.util.EvenOdd;

public class GridUsingZebraEffect {
	private EvenOdd evenOdd;

	@Property
	private Artist artist;
	
	private List<Artist> artistList;

	public List<Artist> getArtistList() {
		if(artistList==null){
			artistList = new ArrayList<Artist>();
			artistList.add(new Artist("001", "Dwi Ardi", "Irawan", new Date()));
			artistList.add(new Artist("002", "Britney", "Spears", new Date()));
			artistList.add(new Artist("003", "Jesse", "McCartney", new Date()));
			artistList.add(new Artist("004", "David", "Bechkam", new Date()));
			artistList.add(new Artist("005", "Mandy", "Moore", new Date()));
			artistList.add(new Artist("006", "Cinta", "laura", new Date()));
		}
		
		return artistList;
	}

	void onActionFromViewDetails(String id) {
		
	}
	
	public EvenOdd getEvenOdd() {
		if(evenOdd==null)
			evenOdd = new EvenOdd();
		return evenOdd;
	}
	
}
